﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Activities;
using AppToolkit.WF.Services;

namespace AppToolkit.WF.Tests.Services
{
    public sealed class TestActivity : NativeActivity
    {
        protected override void Execute(NativeActivityContext context)
        {
            // Create a Bookmark and wait for it to be resumed.
            context.CreateBookmark("WaitBookmark");
        }

        // NativeActivity derived activities that do asynchronous operations by calling 
        // one of the CreateBookmark overloads defined on System.Activities.NativeActivityContext 
        // must override the CanInduceIdle property and return true.
        protected override bool CanInduceIdle
        {
            get { return true; }
        }
    }
}
